home *** CD-ROM | disk | FTP | other *** search
- #include <Types.h>
- #include <Files.h>
- #include <Devices.h>
- #include <Quickdraw.h>
- #include <OSUtils.h>
- #include <Dialogs.h>
- #include <Desk.h>
- #include <Icons.h>
- #include <Errors.h>
- #include <Resources.h>
- #include <Lists.h>
- #include <Memory.h>
- #include <SysEqu.h>
- #include <Packages.h>
- #include <ToolUtils.h>
- #include <StdIO.h>
- #include <String.h>
- #include <Menus.h>
- #include <Sound.h>
- #include <Traps.h>
- #include <Windows.h>
- #include <Quickdraw.h>
- #include "Protos.h"
- #include "AShare.h"
-
- #include "privileges.h"
-
- #pragma segment widemenumdef
-
- pascal void
- widemenu( msg, menuh, rp, top, left, itemp )
- short msg;
- MenuHandle menuh;
- Rect *rp;
- short top, left;
- short *itemp;
- {
- typedef pascal void MDEFfunction ( short, MenuHandle, Rect *, short, short, short * );
- Handle textmdef;
- Byte hstate;
-
- if (( textmdef = GetResource( 'MDEF', textMenuProc )) == NULL ) {
- return;
- }
- hstate = HGetState( textmdef );
- HLock( textmdef );
-
- (*(MDEFfunction *)*textmdef)( msg, menuh, rp, top, left, itemp );
-
- if ( msg == mSizeMsg ) {
- /*
- * adjust horizontal size to add room for arrow on the right
- */
- (*menuh)->menuWidth += ( SIZEOFSICN / 2 );
- }
- HSetState( textmdef, hstate );
- }